﻿/*****************************************************************//**
 * @file    FITKAcousticsVTKViewAdaptorLoadConstraint.h
 * @brief   Adaptor for 'constraint' data.

 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-11-25
 *********************************************************************/

#ifndef __FITKAcousticsVTKViewAdaptorLoadConstraint_H__
#define __FITKAcousticsVTKViewAdaptorLoadConstraint_H__

#include "FITKAcousticsVTKViewAdaptorBase.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'constraint' data.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-11-25
     */
    class FITKACOUSTICSGRAPHADAPTORAPI FITKAcousticsVTKViewAdaptorLoadConstraint : public FITKAcousticsVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKAcousticsVTKViewAdaptorLoadConstraint);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        explicit FITKAcousticsVTKViewAdaptorLoadConstraint() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        ~FITKAcousticsVTKViewAdaptorLoadConstraint() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        bool update() override;

    };

    // Regist constraint adaptor
    Register2FITKViewAdaptorFactory(LoadConstraintSEAShell, Acoustics::FITKLoadConstraintSEAShell, FITKAcousticsVTKViewAdaptorLoadConstraint);
    Register2FITKViewAdaptorFactory(LoadConstraintSEABeam, Acoustics::FITKLoadConstraintSEABeam, FITKAcousticsVTKViewAdaptorLoadConstraint);
    Register2FITKViewAdaptorFactory(LoadConstraintSEAAcoustic, Acoustics::FITKLoadConstraintSEAAcoustic, FITKAcousticsVTKViewAdaptorLoadConstraint);
    Register2FITKViewAdaptorFactory(LoadConstraintFESubsys, Acoustics::FITKLoadConstraintFESubsys, FITKAcousticsVTKViewAdaptorLoadConstraint);
}   // namespace Exchange

#endif // __FITKAcousticsVTKViewAdaptorLoadConstraint_H__